<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-11
 * Time: 17:15
 * 后台关联(关联admin)的交通枢纽的地址
 */

namespace app\api\model;


use think\model\concern\SoftDelete;

class AdminTraffic extends BaseModel
{
    use SoftDelete;

    protected $hidden = [
        'id' , 'admin_id', 'traffic_id', 'create_time', 'update_time', 'delete_time'
    ];

    // 关联交通枢纽主表
    public function traffic()
    {
        return $this->belongsTo('Traffic','traffic_id','id');
    }
}